#include "carla/src/wrapper.h"

#include <exception>

std::unique_ptr<Client> new_client(const rust::Str host, uint16_t port,
                                   uint32_t worker_threads) {
  return std::make_unique<Client>(
      carla::client::Client(std::string(host), port, worker_threads));
}

#ifdef BOOST_NO_EXCEPTIONS

namespace boost {

void throw_exception(std::exception const &) {}

}  // namespace boost

#endif
